﻿<%@ Page Language="C#" MasterPageFile="~/masterPage/admin/SAClient.master" AutoEventWireup="true"
    CodeFile="EditCategoryFrm.aspx.cs" Inherits="SAClientWeb_EditCategoryFrm" Title="类别管理---零件库" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
        function onNodeDropping(sender, args) {
            var dest = args.get_destNode();
            if (dest) {
                dropOnTree(args);
            }
            else {
                dropOnHtmlElement(args);
            }
        }

        function dropOnTree(args) {
            var text = "";

            if (args.get_sourceNodes().length) {
                var i;
                for (i = 0; i < args.get_sourceNodes().length; i++) {
                    var node = args.get_sourceNodes()[i];
                    text = text + ', ' + node.get_text();
                }
            }
        }

        function onNodeDragging(sender, args) {
            var target = args.get_htmlElement();

            if (!target) return;

            if (target.tagName == "INPUT") {
                target.style.cursor = "hand";
            }
        }

    </script>
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
        <table>
          <tr>
            <td valign="top" width="600px"  >
         <telerik:RadDockZone ID="RadDockZone3" runat="server">
          
            <telerik:RadDock ID="RadDock3" runat="server" Title="类别编辑" CloseText="关闭" CollapseText="收起"
               DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
               Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false"  Height="700px">
               <ContentTemplate>
                     <telerik:RadTreeView ID="treeView_category" runat="server" TabIndex="1" AccessKey="T"
                AllowNodeEditing="True" OnNodeEdit="treeView_category_NodeEdit" EnableDragAndDrop="True"
                OnNodeDrop="treeView_category_NodeDrop" OnClientNodeDropping="onNodeDropping"
                OnClientNodeDragging="onNodeDragging" EnableDragAndDropBetweenNodes="True">
            </telerik:RadTreeView>
               </ContentTemplate>
            </telerik:RadDock>
            </telerik:RadDockZone>
            </td >
            <td valign="top" width="300px">
            <telerik:RadDockZone ID="RadDockZone1" runat="server">
            <telerik:RadDock ID="RadDock1" runat="server" Title="操作" CloseText="关闭" CollapseText="收起"
               DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
               Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false"  Height="700px">
               <ContentTemplate>
                <div style=" text-align:center; margin:80px 10px 80px 10px;">
                <p>
                    <asp:Button ID="button_Delete" runat="server" Text="删除" OnClick="button_Delete_Click"  Width="100px"/></p>
                <p>
                    &nbsp;</p>
                <p>
                    <asp:Button ID="button_Edit" runat="server" Text="编辑" OnClick="button_Edit_Click" Width="100px"/>
                </p>
                 <p>
                    &nbsp;</p>
                <p>
                    <asp:Button ID="button_Down" runat="server" Text="下移" OnClick="button_Down_Click" Width="100px"/>
                </p>
                 <p>
                    &nbsp;</p>
                <p>
                    <asp:Button ID="button_Up" runat="server" Text="上移" OnClick="button_Up_Click" Width="100px" />
                </p>
                 <p>
                    &nbsp;</p>
                <p>
                    <asp:Button ID="button_AddSubCategory" runat="server" Text="添加子类别" OnClick="button_AddSubCategory_Click" />
                </p>
                 <p>
                    &nbsp;</p>
                <p>
                    <asp:Button ID="button_AddRootCategory" runat="server" Text="添加根类别" OnClick="button_AddRootCategory_Click" />
                </p>
                 <p>
                    &nbsp;</p>
                <p>
                    <asp:Button ID="button_save" runat="server" Text="保  存"  Width="100px"/>
                    <asp:HiddenField ID="hidStandardId" runat="server" />
                    <asp:HiddenField ID="hideSts" runat="server" />
                </p>
                 &nbsp;</p>
                 <p>
                    <asp:Button ID="button1" runat="server" Text="取消"  Width="100px"/>
                </p>
            </div>
               </ContentTemplate>
            </telerik:RadDock>
          

            </telerik:RadDockZone>
              </td>
            </tr>
            </table>
            </telerik:RadDockLayout>
</asp:Content>
